#include "pch.h"
#include "UIAboutDlg.h"
#include "GaojieDriveApp.h"
#include "UIWndManager.h"

LRESULT CUIAboutDlg::OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	HICON hIcon = GetApp()->GetUIWndManager()->GetMainIcon();
	SetIcon(hIcon, TRUE);
	SetIcon(hIcon, FALSE);

	CenterWindow(GetParent());
	return TRUE;
}

LRESULT CUIAboutDlg::OnOkCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
	DestroyWindow();
	return 0;
}

void CUIAboutDlg::OnFinalMessage(HWND)
{
	delete this;
}
